package com.imooc.converter;

import com.imooc.dto.index.CarouselDto;
import com.imooc.pojo.Carousel;
import org.mapstruct.Mapper;
import org.mapstruct.Mappings;

import java.util.List;

/**
 * @ClassName: CarouselConverter
 * @Description: 轮播图 转换器
 * @author: limingxing
 * @Date: 2019-12-24 16:30
 */
@Mapper(componentModel = "spring")
public interface CarouselConverter {


    @Mappings({})
    CarouselDto carousel2Dto(Carousel carousel);

    List<CarouselDto> carousel2List(List<Carousel> carousels);
}
